Learn R Programming

MLE (version 1.5)

MLE of the ordinal model without covariates: MLE of the ordinal model without covariates

Description

MLE of the ordinal model without covariates.

Usage

ordinal.mle(y, link = "logit")

Value

A list including:

loglik

The log-likelihood of the model.

a

The intercepts (threshold coefficients) of the model.

Arguments

y

A numerical vector with values 1, 2, 3,..., not zeros, or an ordered factor.

link

This can either be "logit" or "probit". It is the link function to be used.

Author

Michail Tsagris and Sofia Piperaki.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Sofia Piperaki sofiapip23@gmail.com.

Details

Maximum likelihood of the ordinal model (proportional odds) is implemented. See for example the "polr" command in R or the examples.

References

Agresti, A. (2002) Categorical Data. Second edition. Wiley.

See Also

colordinal.mle

Examples

Run this code
y <- factor( rbinom(100,3,0.5), ordered = TRUE )
res <- ordinal.mle(y)
res <- ordinal.mle(y, link = "probit")

Run the code above in your browser using DataLab